home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / CC_C / H001A.ZIP / GPPREAD.ME < prev    next >
Text File  |  1991-08-16  |  25KB  |  594 lines

  1. Note: The DJGPP.ZIP has been repackaged into four smaller ZIP files in
  2. order to avoid problems in merging pieces together to reconstruct the
  3. large 2 megabyte ZIP originally released by the author.  These files
  4. are available in this archive as DJGPP1.ZIP, DJGPP2.ZIP, DJGPP3.ZIP,
  5. and DJGPP4.ZIP.
  6.  
  7.                    Signed:  Keith Petersen <w8sdz@WSMR-SIMTEL20.ARMY.MIL>
  8.                             Maintainer of the SIMTEL20 MS-DOS archives
  9.  
  10. ---
  11.  
  12. This is the README file for DJ's GCC port to DOS.
  13.  
  14. Contents:
  15.     * Overview
  16.     * What's available
  17.     * How to install
  18.     * Common questions
  19.     * Deviations and Caveats
  20.     * Copyright information
  21.  
  22. Disclaimer: This software is distributed WITHOUT ANY WARRANTY; without
  23. even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  24. PURPOSE.
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. Overview:
  32.  
  33. This package contains a 32-bit 80386 DOS extender with symbolic
  34. debugger, a C/C++ compiler with utilities, development libraries, and
  35. source code.  It generates full 32-bit programs and supports full
  36. virtual memory with paging to disk. 
  37.  
  38. Requirements:
  39.  
  40. A 80386-based IBM compatible PC or PS/2 is required.  The 80387 emulator
  41. currently does not emulate trancendental functions (exp, sin, etc). 
  42. Approximately 4-5Mb of hard drive space is required.  640K RAM is
  43. required. 
  44.  
  45. Supported Wares:
  46.  
  47. * Up to 128M of extended (not expanded) memory
  48. * Up to 128M of disk space used for swapping
  49. * SuperVGA 256-color mode up to 1024x768
  50. * 80387
  51. * XMS & VDISK memory allocation strategies
  52.  
  53. Unsupported:
  54.  
  55. * V86 programs, like QEMM, 386MAX, DesqView, Windows/386, etc.
  56.  
  57.  
  58.  
  59.  
  60.  
  61. File location:
  62.  
  63.     host:      grape.ecs.clarkson.edu
  64.     login:     ftp
  65.     password:  send your e-mail address
  66.     directory: ~ftp/pub/msdos/djgcc
  67.  
  68. NOTE: In accordance with FSF CopyLeft, you are not allowed to upload
  69. this program to a distribution site unless that site also makes the FSF
  70. sources for these programs available.  Please read the file COPYING for
  71. more details.  FSF sources are available on prep.ai.mit.edu, and on
  72. either grape.ecs.clarkson.edu or sun.soe.clarkson.edu
  73.  
  74. NOTE: If your application links in object modules that were written
  75. by FSF, your application counts as a "derived work" and must obey
  76. the provisions of the FSF Copyrights.  See the file COPYING for
  77. details.  Specifically, the C++ classes in libc.a and obstacks are
  78. FSF works that are covered by the GNU GPL.  The mere act of compiling
  79. does not affect the copyright status of your program.
  80.  
  81.  
  82. File formats:
  83.  
  84.     .ZIP format - djgpp.zip - one 2.2M file, contains everything.
  85.  
  86.     split .ZIP - djgppzip.000 through djgppzip.065 (or so), each
  87.                  32K.  Use the merge program to merge them into 
  88.                  djgpp.zip ("merge djgppzip djgpp.zip").
  89.  
  90.     other - readme, merge.c/.exe, split.c/.exe are separately available
  91.  
  92.  
  93.  
  94. Directories:
  95.  
  96.     bin          all binaries (cpp, cc1, extender, etc)
  97.     lib          all libraries (crt0.*, libc.a, libgr.a, libpc.a)
  98.     include      all include files (arc'd tar file)
  99.     docs         all documents (including this one)
  100.     go32         sources for the extender
  101.     drivers      various SuperVGA drivers
  102.     libsrc       sources for the libraries (arc'd tar file)
  103.     diffs        diffs from FSF distributions to dos-compilable
  104.     utils        sources for the utilities
  105.     samples      sample C++ sources using graphics & mouse
  106.     emu387       80387 emulator for non-80387 systems (currently TEST version)
  107.  
  108.  
  109. bin:
  110.     bison.exe    lalr(1) parser
  111.     flex.exe     lexical parser
  112.     cpp.exe      C and C++ preprocessor
  113.     cc1.exe      C compiler
  114.     cc1plus.exe  C++ compiler
  115.     as.exe       80386/80387 assembler
  116.     ld.exe       a.out (BSD) format linker
  117.     ar.exe       archive utility
  118.     nm.exe       name list utility
  119.     size.exe     a.out section size utility
  120.     strip.exe    symbol stripper
  121.     objdump.exe  display info from .o file
  122.     gcc.exe      compilation coordinator
  123.     go32.exe     basic 32-bit DOS extender
  124.     debug32.exe  32-bit DOS extender with symbolic debugger
  125.     stub.exe     stub to prepend on aout files to make .exe files
  126.     aout2exe.bat turns aout file to .exe by prepending stub.exe
  127.     diff.exe     creates diffs, including context diffs
  128.     patch.exe    patches source from diffs, including context diffs
  129.     djtarx.exe   tar extractor for FSF tarfiles if you don't have a tar
  130.     utod.exe     convert Unix text files to DOS text files
  131.     dtou.exe     convert DOS text files to Unix text files
  132.     split.exe    split big binaries into many little binaries
  133.     merge.exe    merge many little binaries back into one big binary
  134.  
  135. lib:
  136.  
  137.     libc.a       all standard routines (BSD style), and C++ methods & support
  138.     libm.a       math routines
  139.     libgr.a      graphics routines and mouse support
  140.     libpc.a      routines for PC support (in/out, getkey, kbhit, screen utils)
  141.     crt0.s       C runtime source
  142.     crt0.o       C runtime object
  143.     bison.simple bison support
  144.     bison.hairy  bison support
  145.     flex.skel    flex support file
  146.     libflex.a    flex support library
  147.  
  148. include:
  149.  
  150.     Most BSD-style and SYSV-style include files.  These mostly came from
  151.     the G++ sources.
  152.     sys/*.h      MS-DOS specific
  153.     graphics.h   for libgr.a
  154.     pc.h         for libpc.a
  155.     mouse.h      for mouse routines in libgr.a
  156.  
  157. docs:
  158.  
  159.     readme       this document
  160.     copying      GNU General Public License
  161.     copying.dj   Copyright information for items (C) DJ Delorie
  162.     debug32.doc  instructions for the symbolic debugger
  163.     internal.doc information about how the extender works
  164.     libc.a       differences and enhancements
  165.     libm.a       list of implemented functions
  166.     libpc.a      documentation
  167.     libgr.a      documentation
  168.  
  169. go32:
  170.  
  171.     sources for the extender.  Requires Turbo C and Turbo Assembler
  172.  
  173. drivers:
  174.  
  175.     VGA and SuperVGA drivers - source and binary.  Use the GO32 environment
  176.     variable to select and configure one of these according to the VGA card
  177.     you have.
  178.  
  179. libsrc:
  180.  
  181.     Sources for the libraries.  These are compiled with gcc.  The makefile
  182.     is set up for NDMAKE.  The source files came from three sources:
  183.     
  184.         (1) Me.  Mostly the system call routines, and some string routines.
  185.             All of libpc.a, libgr.a, libm.a .
  186.         (2) FSF.  These are the GCC support routines, C++ support, and
  187.             other routines that came with gcc (malloc, obstack, alloca, etc)
  188.         (3) BSD.  These are mostly the stdio and stdlib routines, and
  189.             the rest of the string routines.  BSD requires that I mention
  190.             that their sources are copyright BSD and that I have modified
  191.             some to comply with the include files provided by FSF.  These
  192.             sources are the "freed files" everyone keeps talking about.
  193.  
  194. diffs:
  195.  
  196.     Context diffs from the original FSF sources to the GNUDOS sources.  See
  197.     the README and VERSIONS files in that directory for more info.
  198.  
  199. utils:
  200.  
  201.     Sources for djtarx, utod, dtou, split, and merge.
  202.  
  203. samples:
  204.  
  205.     Various samples showing how to use the mouse, graphics, C++, setjmp(),
  206.     etc.
  207.  
  208. emu387:
  209.  
  210.     80387 emulator and source code.  Currently, this is a TEST version, as
  211.     I'm not done with it yet.  Trig, log, exp functions are missing, for
  212.     starters.  I don't expect this to work perfectly, but should cover
  213.     most normal floating point math.  To use, add "emu /djgcc/emu387/emu387"
  214.     to the GO32 environment variable. (ie: set GO32=emu /djgcc/emu387/emu387)
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223. INSTALLING:
  224.  
  225. To install, you must do the following:
  226.  
  227. * Create a directory to install in, like c:\djgpp.
  228.  
  229. * Create a "temp" directory, like c:\tmp.
  230.  
  231. * Un-zip djgpp.zip in that directory.
  232.     C:\DJGPP> pkunzip -d djgpp.zip
  233.  
  234. * Add the following lines to C:\AUTOEXEC.BAT:
  235.     set gccbin=c:/djgpp/bin
  236.     set gccinc=c:/djgpp/include
  237.     set gcclib=c:/djgpp/lib
  238.     set gcctmp=c:/tmp  (TMP and TEMP are checked if this isn't set)
  239.     set go32=ansi driver c:/djgpp/drivers/tseng4k.grd gw 1024 gh 768
  240.                          ^^^ or whatever driver works with your VGA (optional)
  241.     set bison_simple=c:/djgpp/lib/bison.simple
  242.     set bison_hairy=c:/djgpp/lib/bison.hairy
  243.     set flex_skeleton=c:/djgpp/lib/flex.skeleton
  244.   Remember that unless you manually type these at the command line,
  245.   they won't take effect until you reboot.  Don't include the "ansi"
  246.   keyword in the "go32" variable if you don't have an ANSI.SYS driver
  247.   or equivalent.
  248.  
  249. * Add your binaries directory to your PATH in C:\AUTOEXEC.BAT
  250.     SET PATH= . . . ;C:\DJGPP\BIN
  251.  
  252. That's it! G++ is now installed on your system.
  253.  
  254.  
  255.  
  256.  
  257.  
  258. The GO32 environment variable:
  259.  
  260.  
  261. This variable controls the options available in go32 or debug32.  The
  262. syntax of this variable is:
  263.  
  264.   SET GO32=[parm [value]] [parm [value]] . . .
  265.  
  266. Parameters:
  267.  
  268.   ansi           Use ANSI commands to control the color in debug32
  269.   mono           Use the Monochrome monitor for debugging - useful when
  270.                    debugging graphics applications
  271.   emu [path]     Use the specified file as the 80387 emulator
  272.   driver [path]  Use the specified file as the graphics driver
  273.   gw [width]     Default graphics width
  274.   gh [height]    Default graphics height
  275.   tw [width]     Default text width
  276.   th [height]    Default text height
  277.  
  278. These parameters may occur in any order.
  279.  
  280. Examples:
  281.  
  282.   C:\> set go32=mono driver c:\djgpp\drivers\tseng4k.grd gw 1024 gh 768 tw 132 th 43
  283.   C:\> set go32=ansi
  284.   C:\> set go32=driver c:\djgpp\drivers\tseng4k.grd ansi
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292. Common Questions:
  293.  
  294. Q: When I run "gcc e:\proj\prog.c" it says "undefined escape sequence \p"?
  295. A: Gcc is a *unix* compiler - you must use *unix* slashes (e:/proj/prog.c).
  296.    Environment variables (like GCCINC) may, however, use either, as they
  297.    are converted.
  298.  
  299. Q: I type "GCC PROG.C" and ld complains about PROG.C not being an object.
  300. Q: I type "gcc prog.cxx" to compile a C++ program, and ld complains.
  301. A: Gcc is *not* case insensitive like DOS is, and it uses the file's
  302.    extension to determine how to compile a file.  Valid extensions are:
  303.      .cc = C++ source (passed through cpp)
  304.      .c = C source that must be passed through cpp first
  305.      .i = raw C source (no cpp pass)
  306.      .S = assembler that must be passed through cpp first
  307.      .s = raw assembler source (no cpp pass)
  308.    any other file is passed to the linker
  309.  
  310. Q: I compile my program, but can't run the output file.
  311. A: DOS doesn't know how to run unix-style a.out files.  That's what the
  312.    extender is for.  To run an a.out file called myprog, type
  313.      "go32 myprog . . ."
  314.  
  315. Q: Gcc doesn't recognize // as a comment in my C programs.
  316. A: That's because // isn't a comment in C.  If you want to compile C++,
  317.    then write C++ programs.  Gcc is really two compilers in one, not
  318.    one compiler that compiles both C and C++.  That's why you get
  319.    cc1 and cc1plus.
  320.  
  321. Q: I'm reading in data files, but the data gets corrupted.
  322. A: The default file type is DOS text, even for read() and write().  You must
  323.    tell the system that a file is binary through the "b" flag in fopen(),
  324.    or O_BINARY in open().
  325.  
  326. Q: I get "fatal signal 2" when I run gcc.
  327. A: When gcc reports a "signal", it really means that an error occurred
  328.    trying to run the given program.  The "signal" number is the DOS error
  329.    code, and 2 means "file not found".  Check the GCCBIN environment
  330.    variable and make sure it points to the directory with cpp.exe,
  331.    cc1.exe, etc.
  332.  
  333. Q: The binaries I get with the distribution are .exe files, but gcc creates
  334.    a.out files.  I rename the a.out's to .EXE's, but they still don't work.
  335. A: To get an .EXE from an a.out, you must *prepend* either go32.exe,
  336.    debug32.exe, or stub.exe to the file:
  337.      copy /b stub.exe+myprog myprog.exe
  338.  
  339. Q: What is stub.exe?
  340. A: Stub.exe simply calles go32.exe, and passes it information it needs to
  341.    run the a.out file attached to it.  Stub is much smaller than go32, so
  342.    less disk space is used.  Also, if you change go32, you don't have to
  343.    change stub, and all the stub-ized programs will use the new go32
  344.    automatically.
  345.  
  346. Q: I want to change cc1.  How do I do this?
  347. A: First, get the GNU sources from FSF.  They're usually available at
  348.    prep.ai.mit.edu in /u/emacs, if not elsewhere.  Use djtarx to un-tar
  349.    them, as djtarx knows how to handle unix file names that aren't valid
  350.    DOS file names.  Look in the "diffs" sources to see what to change the
  351.    names to when they conflict.  Next, apply the "diffs" over the
  352.    GNU sources (making sure you have the right version of GNU - see the
  353.    versions file).  For the gcc-1.39 sources, you must run utod (or some
  354.    other unix-to-dos converter) to compile gcc.exe, then run config-d.bat,
  355.    then run makeall.bat.  For gpp-1.39, copy the g++ sources over the
  356.    completed gcc sources, apply the gpp diffs, then run makeall.bat (gpp's
  357.    now).  For all other programs, just run make.  Note that the makefiles
  358.    are tuned for ndmake, since it knows how to make response files.
  359.  
  360. Q: I don't have an 80387.  How do I compile floating point programs?
  361. A: Add "emu c:\djgpp\emu387\emu387" to the GO32 environment variable
  362.    (see go32 section above).  This tells go32 to use the given file
  363.    as an 80387 emulator.  This emulator does not support trancendental
  364.    functions like exp or sin yet, but it works well enough for compiles
  365.    and standard +-*/ functions, including sqrt().  If you don't load
  366.    this emulator, and you try to run floating point without a 387,
  367.    you will get an error.
  368.  
  369. Q: I installed an 80387 emulator in my AUTOEXEC, but it still doesn't
  370.    work.  Why?
  371. A: The CPU is running in *protected* mode, not real mode, and the information
  372.    needed to emulate the 80387 is different.  Not to mention that the
  373.    exceptions never get to the real-mode handler.  You must use the emu387
  374.    emulator, which is designed for go32.
  375.  
  376. Q: I can't run a.out programs under {QEMM,386MAX,Windows}.
  377. A: Nope, you can't.  These applications put the CPU into V86 mode, not
  378.    real mode, so go32 can't manage the real-protected interface
  379.    properly.  Go32 literally *takes over* the computer in order to
  380.    properly service the application it is running.
  381.  
  382. Q: Can I run this on my 286?  It has protected mode also...
  383. A: True, but the 286 isn't a 32-bit processor.  A 386 really is required.
  384.  
  385. Q: Can I use gcc on my 512K machine?
  386. A: Yes, but the disk better have at least 4Mb of free space for paging.
  387.    Go32 will use all available extended memory (up to 128M) and up to
  388.    128M of disk space, for a grand total of 256M of virtual memory for
  389.    your application.  Try a malloc(50*1024*1024) some day.
  390.  
  391. Q: Why do my compiles are running VERY SLOW, even though I use a ramdisk
  392.    for swap and a disk cache?
  393. A: Gcc requires at least 1Mb of virtual memory to run, usually close to 1.5M.
  394.    If there isn't this much real memory available, it starts paging to disk.
  395.    It's good to leave about 1M of extended (not expanded) memory available
  396.    for go32 to run programs with.  When it needs to page a lot, you spend
  397.    most of your time paging and little time actually running.
  398.  
  399. Q: How much memory is available when I use the system() call?
  400. A: Everything but what go32 is loaded with.  The program is completely
  401.    paged out to memory (including the page tables themselves) before
  402.    the second program is executed.
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409. Deviations and Caveats:
  410.  
  411. GCC/G++ deviates from the U**x version in a number of ways, mostly to
  412. accomodate deficiencies in the MS-DOS environment, and my own laziness.
  413.  
  414. * An 80387 is required to do floating point.  An emulator is provided,
  415.   but it does not support all the 80387 functions (it does +-*/ sqrt).
  416.   cc1 and cc1plus shouldn't use the 387 unless compiling floating point
  417.   code.  The environment variable "387" can override the auto-detection
  418.   routine:
  419.     SET 387=YES   to force 387 handlers to be enabled
  420.     SET 387=NO    to force 387 accesses to fault
  421.     SET 387=QUERY to get a message showing the results of the auto-detection
  422.   If no 80387 is present and the program attempts to use it, a message
  423.   indicating where the instruction is will be displayed.  To use the
  424.   387 emulator, add "emu c:\djgpp\emu387\emu387" to the GO32 environment
  425.   variable
  426.  
  427. * The VDISK method of allocating extended memory is supported.  The
  428.   INT 15h method is also.  When the extender runs out of conventional and
  429.   extended memory, it uses a paging file named $(GCCTMP)/pageXXXX.386, where
  430.   XXXX is an unspecified hex value.  This file is normally removed on exit.
  431.  
  432. * Up to 128 MB of physical memory and 128 MB of disk swap space are allowed.
  433.   A 512K machine is sufficient, but very slow due to paging.
  434.  
  435. * The utilies support the MS-DOS standard response file method for giving
  436.   more than 128 bytes of command line.  Example: "gcc -o foo @foo.lnk" where
  437.   foo.lnk contains a list of .o files.
  438.  
  439. * Since MS-DOS does not distinguish case in file names, some .h files
  440.   used for C++ have had underscores prepended to them to avoid conflict
  441.   (ie: String.h conflicts with string.h, so it became _String.h).
  442.  
  443. * When using ar to create archives, be warned that the ar version
  444.   supplied cannot update an archive that's been sequenced (ar s foo.a),
  445.   and cannot sequence a file that's been sequenced.  Also, ld cannot
  446.   use an archive that's not sequenced.  The following method is suggested:
  447.       ar rv mylib.a $(OBJS)
  448.       cp mylib.a mylib2.a
  449.       ar rvs mylib2.a
  450.       (and then link with mylib2.a)
  451.  
  452. * The extender can be added to any gcc-compiled program by copying go32.exe
  453.   to be <program>.exe, where <program> is the 32-bit program.  For example,
  454.   cc1plus is a gcc-compiled a.out file.  cc1plus.exe is a copy of go32.exe.
  455.   When the extender runs, it looks for a file of the same name but without
  456.   extension in the same directory, and executes it if present.  Otherwise,
  457.   the first parameter is the executable (ie: go32 cc1plus foo.cc).
  458.  
  459. * The extender can be merged to create one .exe file that is the extender
  460.   and the executable in one file, by using the stub.exe program:
  461.       copy /b stub.exe+myprog myprog.exe
  462.   This will only work if go32.exe is in your search path, because stub.exe
  463.   runs it.  Alternatively, you can prepend go32.exe itself to an a.out file
  464.   to get a single executable (stub.exe is much smaller).  Note that if
  465.   you re-compile go32 or stub, you must strip off the symbol table first. 
  466.  
  467. * The extender runs programs at logical address 0.  A copy of the first
  468.   1 MB of physical memory (including the AT channel) is mapped to
  469.   0xE0000000 in the program's address space.  The stack grows down from
  470.   0x7FFFFFFC in the program's address space.  Data usually starts at
  471.   0x00400000.
  472.  
  473. * The paging mechanism understands how SuperVGA's map their memory onto
  474.   the AT bus and automatically swaps pages as the program tries to
  475.   access them.  The program sees a linear range from 0xD0000000 to
  476.   0xD0100000 that corresponds to each pixel in the 256-color modes
  477.   of SuperVGAs.  To use this feature, you'll have to set the GO32
  478.   environment variable like this:
  479.     C>set go32=driver c:\djgpp\drivers\tseng4k.grd gw 640 gh 480 tw 132 th 43
  480.   These parameter pairs can be omitted or rearranged as needed.  They are
  481.   the "driver" name, default graphics width and height, and default
  482.   text width and height. Libgr.a doesn't have to be recompiled, nor
  483.   do graphics programs, when a different graphics mode is selected
  484.   (the extender handles it).  It is strongly recommended that the program
  485.   use the GR_default_graphics and GR_default_text modes to switch to
  486.   graphics or text.  These modes use the parameters specified by the
  487.   GO32 environment variable, allowing the user to select a favorite
  488.   graphics and text mode.
  489.  
  490. * Symbols are stored in virtual memory, so you won't run out of symbol
  491.   space until both extended memory and the disk are all used up.  For
  492.   large programs, you might notice a slight delay while it looks up
  493.   symbols.
  494.  
  495. * Signals are not reported to the program.  However, interrupts do continue
  496.   to get serviced while in protected mode (ie: keypress, timer, etc).
  497.   CTRL-C will get you back to the debugger in debug32, and you can continue
  498.   from where you stopped.  All signals (ie: exceptions) cause debugging
  499.   traps in debug32, or general faults in go32.
  500.  
  501.  
  502.  
  503. Copyright Information:
  504.  
  505. * Source code for the GNU utilities is copyright (c) Free Software Foundation.
  506.   For more information on the FSF copyright, see their source code or write
  507.   Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  508.   A copy of their file "COPYING" is included in doc.arc.  Some of the FSF
  509.   source code has been modified to operate properly in the MS-DOS environment.
  510.  
  511. * Source code for most of libc.a are copyright (c) Regents of the University
  512.   of California.  These files include copyright information in them.  The
  513.   utilities are compiled against these libraries, and thus contain software
  514.   developed by the University of California, Berkeley, and its contributors.
  515.   Some of the BSD source code has been modified to operate properly in the
  516.   MS-DOS environment.
  517.  
  518. * Any sources not falling under the copyrights of FSF or UCB (as above) are
  519.   Copyright (c) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954.
  520.   To contact me via E-Mail, sent to "dj@ctron.com".  Cabletron Systems Inc
  521.   is in no way involved with this project; I just happen to work for them
  522.   during the day.
  523.  
  524. Terms and Conditions:
  525.  
  526. * Source code copyright FSF is distributed under the terms of the GNU
  527.   Public General License.  See the file "COPYING" in doc.arc for more
  528.   information.  If your program links in object modules (in libc.a) that
  529.   are compiled from GNU sources, then your entire program must be
  530.   distributed under the terms of the GNU GPL as a "derived work".  These
  531.   modules are the C++ class library (including the streams classes) and
  532.   obstacks.  The sources in libsrc have the copyright notices in them
  533.   for the various modules.
  534.  
  535. * Source code copyright UCB is distributed under the terms listed in the
  536.   UCB source code itself.
  537.  
  538. * Source code copyright DJ Delorie is distributed under the terms of the
  539.   GNU General Public Licence, with the following exceptions:
  540.   (source code and executables copyright DJ Delorie are referred to as
  541.    "djcode" below)
  542.  
  543.   1 If the user of this software develops an application that requires
  544.     djcode to run, and that application is distributed under the terms
  545.     of the GNU General Public License (GPL), a binary executable of
  546.     djcode may be distributed with binary executables of the application,
  547.     and source files for djcode must be available with source files for
  548.     the application, under the terms of the GNU GPL.
  549.  
  550.   2 If the user of this software develops an application that requires
  551.     djcode to run, and that application is NOT distributed under the terms
  552.     of the GNU General Public License (GPL), a binary executable of
  553.     djcode may be distributed with binary executables of the application,
  554.     provided a royalty of 5% of the total sale price or $5 (whichever is
  555.     more) per copy sold is paid to DJ Delorie (at the address above).
  556.     Requests for exceptions may be made to DJ Delorie, but the granting of
  557.     an exception covers only the work excepted and does not apply to
  558.     other works, even if distributed under the same conditions.  Exceptions
  559.     will not be granted for any work sold for profit.
  560.  
  561.   3 A person or organization who develops software that requires djcode
  562.     but does not distribute that software under the terms of the GNU GPL
  563.     relinquishes all rights to obtain or redistribute the source code
  564.     for djcode, including any rights granted by the GNU General Public
  565.     License, and may only distribute executables of djcode under the
  566.     terms of exception 2, above.
  567.  
  568.   The intent of this copyright is this: If you make money by using the
  569.   programs I wrote, I get some of it.  If you use your sources to
  570.   teach others how to write programs, I'll support you.
  571.  
  572.   Changes to source code copyright BSD or FSF are copyright DJ Delorie, but
  573.   fall under the terms of the original copyright.
  574.  
  575.  
  576.  
  577.  
  578.  
  579. Donations may be made to any of the following:
  580.  
  581.     DJ Delorie
  582.     24 Kirsten Ave
  583.     Rochester, NH  03867-2954
  584.     USA
  585.  
  586.     Free Software Foundation
  587.     675 Mass Ave
  588.     Cambridge, MA 02139
  589.     USA
  590.  
  591.     University of California
  592.     Berkeley, CA  (sorry, I don't know their ZIP code)
  593.     USA
  594.